package storage

import "errors"

var (
	ErrURLNotFound = errors.New("URL not found")
	ErrURLExists   = errors.New("URL already exists")
)

type URLPair struct {
	ShortCode string
	LongURL   string
}

type Storage interface {
	Save(longURL, shortCode string) error
	Get(shortCode string) (string, error)
	Exists(longURL string) (string, bool)
}